﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Born : MonoBehaviour
{
    //玩家坦克引用
    public GameObject playerPrefab;
    // Start is called before the first frame update
    void Start()
    {
         Invoke("InitTank",1f);
         Destroy(gameObject,1f);
    }

    // Update is called once per frame
    void Update()
    {
        
    }

    private void InitTank()
    {
        //创建玩家坦克实例
        Instantiate(playerPrefab,transform.position, Quaternion.identity);
    }
}
